<?php
    $module = $this->uri->segment(1);
?>
<li <?php if (($module == '') || ($module == 'car') || ($module == 'comment')) echo 'class="active"'; ?>>
    <a href="<?php echo base_url(); ?>">
        <div class="menu">        
            Home
        </div>
    </a>
</li>
<li <?php if (($module == 'sell') || ($module == 'member')) echo 'class="active"'; ?>>
    <a href="<?php echo base_url() . "index.php/sell"; ?>">
        <div class="menu">        
            Sell
        </div>
    </a>
</li>
<li <?php if (($module == 'buy') || ($module == '???')) echo 'class="active"'; ?>>
    <a href="<?php echo base_url() . "index.php/buy"; ?>">
        <div class="menu">        
            Buy
        </div>
    </a>
</li>
<li <?php if ($module == 'rent') echo 'class="active"'; ?>>
    <a href="<?php echo base_url() . "index.php/rent"; ?>">
        <div class="menu">        
            Rent
        </div>
    </a>
</li>
<li <?php if ($module == 'service') echo 'class="active"'; ?>>
    <a href="<?php echo base_url() . "index.php/service"; ?>">
        <div class="menu">        
            Services
        </div>
    </a>
</li>
<li <?php if ($module == 'part') echo 'class="active"'; ?>>
    <a href="<?php echo base_url() . "index.php/part"; ?>">
        <div class="menu">        
            Products
        </div>
    </a>
</li>
<li <?php if ($module == 'page') echo 'class="active"'; ?>>
    <a href="<?php echo base_url() . "index.php/page/finance"; ?>">
        <div class="menu">        
            Car Loans
        </div>
    </a>
</li>
<li <?php if ($module == 'news') echo 'class="active"'; ?>>
    <a href="<?php echo base_url() . "index.php/news"?>">
        <div class="menu">        
            News
        </div>
    </a>
</li>